package com.example.klinemqflink.model;

import lombok.Data;

import java.io.Serializable;

@Data
public class MarketData implements Serializable {
    private String symbol;       // Trading symbol (e.g., BTC/USDT)
    private String channel;
    private String instrument;
    private double price;        // Last traded price
    private double volume;       // Trade volume
    private long timestamp;   // Event timestamp

    public MarketData() {
    }

    public MarketData(String channel, String instrument, String symbol, double price, double volume, long timestamp) {
        this.symbol = symbol;
        this.channel = channel;
        this.instrument = instrument;
        this.price = price;
        this.volume = volume;
        this.timestamp = timestamp;
    }
}
